package com.company.createtype.factoryfunction;

import com.company.Product;

public class ToyFactory  implements IMethodFactory{

    public static class ToyProduct extends Product{

    }

    @Override
    public Product create() {
        return new ToyProduct();
    }
}
